package com.douqu.game.merge;

import com.douqu.game.merge.manager.SpringContext;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author: Bean
 * @Description:
 * @Date: 2017-12-26 18:42
 */
@EnableTransactionManagement//事务支持,要用事务控制的方法里必须抛出异常才会回滚
@MapperScan("com.douqu.game.merge.database.mapper")//扫描mapper
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})//禁止自动读取数据源
public class StartServer {

    public static void main(String[] args)
    {
        ApplicationContext applicationContext = SpringApplication.run(StartServer.class, args);
        SpringContext.init(applicationContext);
    }




}
